#include "SMPPBroadcastServiceGroup.hpp"

using namespace smpp::pdu;

BroadcastServiceGroup::BroadcastServiceGroup(const octetString &nValue):
TLV(TLVtags::TAG_BROADCAST_SERVICE_GROUP,nValue.size()),_Value(nValue){}

BroadcastServiceGroup::BroadcastServiceGroup(
const BroadcastServiceGroup &nBroadcastServiceGroup):
TLV(nBroadcastServiceGroup),_Value(nBroadcastServiceGroup.getValue()){}

bool BroadcastServiceGroup::operator ==(
	const BroadcastServiceGroup &nBroadcastServiceGroup) const{
	return (TLV::operator == (nBroadcastServiceGroup) && 
			_Value == nBroadcastServiceGroup.getValue());
}

bool BroadcastServiceGroup::operator !=(
	const BroadcastServiceGroup &nBroadcastServiceGroup) const{
	return !this->operator == (nBroadcastServiceGroup);
}

BroadcastServiceGroup &BroadcastServiceGroup::operator = (
	const BroadcastServiceGroup &nBroadcastServiceGroup){
	if(*this == nBroadcastServiceGroup)
		return *this;
	TLV::operator = (nBroadcastServiceGroup);
	_Value = nBroadcastServiceGroup.getValue();
	return *this;
}

void BroadcastServiceGroup::setValue(const octetString &nValue){
	_Value = nValue;
}

const octetString &BroadcastServiceGroup::getValue() const{
	return _Value;
}
